import request from '@/utils/request'

// 查询包装费用管理列表
export function listPackaging(query) {
  return request({
    url: '/sale/packaging/list',
    method: 'get',
    params: query
  })
}

// 查询包装费用管理详细
export function getPackaging(packagingId) {
  return request({
    url: '/sale/packaging/' + packagingId,
    method: 'get'
  })
}


// 新增包装费用管理
export function addPackaging(data) {
  return request({
    url: '/sale/packaging',
    method: 'post',
    data: data
  })
}

// 修改包装费用管理
export function updatePackaging(data) {
  return request({
    url: '/sale/packaging',
    method: 'put',
    data: data
  })
}

// 删除包装费用管理
export function delPackaging(packagingId) {
  return request({
    url: '/sale/packaging/' + packagingId,
    method: 'delete'
  })
}
